package com.hx.order.service;

import java.util.List;
import com.hx.order.domain.Receiver;

/**
 * 收货地址Service接口
 * 
 * @author ord
 * @date 2023-05-28
 */
public interface IReceiverService {
    /**
     * 查询收货地址
     * 
     * @param receiverId 收货地址主键
     * @return 收货地址
     */
    Receiver selectReceiverByReceiverId(Long receiverId);

    /**
     * 查询收货地址列表
     * 
     * @param receiver 收货地址
     * @return 收货地址集合
     */
    List<Receiver> selectReceiverList(Receiver receiver);

    /**
     * 新增收货地址
     * 
     * @param receiver 收货地址
     * @return 结果
     */
    int insertReceiver(Receiver receiver);

    /**
     * 修改收货地址
     * 
     * @param receiver 收货地址
     * @return 结果
     */
    int updateReceiver(Receiver receiver);

    /**
     * 批量删除收货地址
     * 
     * @param receiverIds 需要删除的收货地址主键集合
     * @return 结果
     */
    int deleteReceiverByReceiverIds(Long[] receiverIds);

    /**
     * 删除收货地址信息
     * 
     * @param receiverId 收货地址主键
     * @return 结果
     */
    int deleteReceiverByReceiverId(Long receiverId);
}
